<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>mod_auth_pgsql</TITLE>
<LINK REL="STYLESHEET" HREF="manual.css">
</HEAD>

<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#00003F" ALINK="#FF0000">
<DIV CLASS="body">

<DIV ALIGN="CENTER">
 <A HREF="http://nanoweb.si.kz/"><IMG BORDER="0" SRC="/icons/nanoweb.png" ALT="[NANOWEB DOCUMENTATION]"></A>
 <H3><SMALL>NANOWEB</SMALL>, the aEGiS PHP web server</H3>
</DIV>

<H1 ALIGN="CENTER">PostgreSQL Authentication Module</H1>

This module can access a PostgreSQL database to fetch user names and
passwords for http authentication from it. Works like
<a href="mod_auth_mysql.html">mod_auth_mysql</a> for MySQL databases.
<br>
As you can have several different
authentication method modules loaded in nanoweb, you must select this one
for the directory where authentication is required (following directives
must be put in the .nwaccess file):

<br>
<br>

<PRE CLASS="samp">AuthRealm = realm name

# use the postgres database login lookup module
AuthRequire = <b>PGSQL</b>

# following directives specify the database and the server
# it is running on as well as the db access password
AuthPgsqlHost  = localhost
AuthPgsqlUser  = db_user
AuthPgsqlPass  = db_pass
AuthPgsqlDB    = db_name

# you can use any existing table that contains
# login/password pairs, by giving this authentication
# module the correct table and column names
AuthPgsqlTable = table_name
AuthPgsqlLoginColumn = login_field_name
AuthPgsqlPassColumn  = password_field_name

# "plain" if the password lies unencoded in the database,
# "md5" if the system hash function was used
AuthPgsqlPassType = plain | md5
</PRE>

<br>
<br>

<br>
<BR><HR NOSHADE COLOR="#063239">
 <H3 ALIGN="CENTER"> <SMALL>NANOWEB</SMALL>, the aEGiS PHP web server </H3>
<DIV CLASS="navline"><A HREF="index.html">Index</A> &nbsp; <A HREF="modules.html">Modules</A> &nbsp; <A HREF="core.html">Configuration</A> &nbsp; <A HREF="../">READMEs</A> &nbsp; <A HREF="faq.html">FAQ</A> &nbsp; <A HREF="http://forums.t0x.net/viewforum.php?f=1">Support Forum</A></DIV>

</DIV>
</BODY>
</HTML>
